<?php
/**
 * IWpController.php
 * 
 * This file contains the interface for controller classes used for the control layer in MVC
 * @author Robert Schmidt <robert@wildpack.de>
 * @version 1.0
 * @package wildpack
 * @subpackage mvc.controller
 */

/**
 * The interface for controller classes used for the control layer in MVC
 * @author Robert Schmidt <robert@wildpack.de>
 * @version 1.0
 * @package wildpack
 * @subpackage mvc.controller
 */
interface IWpController
{
	/**
	 * The class constructor
	 * @param object $resolver A resolver object to resolve the requested class object
	 * @param object $request The request object
	 */
	function __construct($resolver, $request);
	
	/**
	 * Mark the controller to forward to another command
	 * @param string $command[optional] The command to forward to
	 * @param string $viewname[optional] The view to forward to
	 */
	function forward($command='', $viewname='');
	
	/**
	 * Starts processing the request
	 * @param $view The view object to use.
	 * @param $response The response object
	 */
	function process($view, $response);	
	
}

/* End of file IWpController.php */
/* Location: ./wildpack/mvc/controller/IWpController.php */ 